package com.xmmj.main.view.activity

import com.alibaba.android.arouter.facade.annotation.Route
import com.xmmj.baselibrary.base.activity.mvvm.BaseMvvmActivity
import com.xmmj.common.router.RouterPath
import com.xmmj.main.viewmodel.MainViewModel
import com.xmmj.module_main.BR
import com.xmmj.module_main.R
import com.xmmj.module_main.databinding.ActivityMainBinding

/**
 * 主页
 */
@Route(path = RouterPath.Main.PAGE_MAIN)
class MainActivity : BaseMvvmActivity<ActivityMainBinding, MainViewModel>() {


    override fun getVariableId(): Int {
        return BR.viewModel
    }

    override fun getContentViewId(): Int {
        return R.layout.activity_main
    }

    override fun onRequest() {
        super.onRequest()
        mViewModel.getVideo(showLoading = true, refresh = true)

    }
}